package cn.lili;


import cn.lili.result.ResultMessage;
import cn.lili.result.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author liushuai
 */
@RestController
@RequestMapping("/lili/im")
public class ChatController {


    @Autowired
    private WebSocketServer webSocketServer;

    @GetMapping("/room")
    public ModelAndView room(String name) {
        ModelAndView modelAndView = new ModelAndView("chatroom");
        modelAndView.addObject("name", name);
        return modelAndView;
    }
}
